function greenFn(target){
  console.log('green')
  console.log(target)
  target.prototype.aaaaa = () => {
    setTimeout(() => {
      console.log('bbbbbbb')
    }, 5000)
  }
}

@greenFn
class MyTest {
  state = { // 需要使用 @babel/plugin-proposal-class-properties  加以支持
    list: ['111', '2222']
  }
  constructor () {
    this.message = 'hello sz-gp-04'
  }

  show () {
    // console.log(this.message)
    // console.log(this.state.list)
    const obj = Object.assign({}, { a: 1 }, { b:2 })
    console.log(obj)
  }

  test () {
    console.log('555')
  }
}

const fn = () => {
  console.log('001110')
  return new Promise(resolve => {
    setTimeout(() => {
      resolve('哈哈哈哈哈哈')
    }, 2000);
  })
}

const myTest = new MyTest()
// export default new MyTest()
export {
  myTest,
  // fn as default // export default fn // import fn, { myTest } from ''
  fn
}